.class public Lnet/tsapps/topdeals/views/TdScrollview;
.super Landroid/widget/ScrollView;


# instance fields
.field public a:Ljava/lang/Runnable;

.field public b:Ljava/lang/Runnable;

.field public c:I

.field private d:Landroid/os/Handler;

.field private e:Lnet/tsapps/topdeals/views/TdScrollview;

.field private f:Z

.field private g:Z

.field private h:I

.field private i:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->d:Landroid/os/Handler;

    iput-object p0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->e:Lnet/tsapps/topdeals/views/TdScrollview;

    iput-boolean v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->f:Z

    iput-boolean v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->g:Z

    iput v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->h:I

    new-instance v0, Lnet/tsapps/topdeals/views/g;

    invoke-direct {v0, p0}, Lnet/tsapps/topdeals/views/g;-><init>(Lnet/tsapps/topdeals/views/TdScrollview;)V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->i:Ljava/lang/Runnable;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->d:Landroid/os/Handler;

    iput-object p0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->e:Lnet/tsapps/topdeals/views/TdScrollview;

    iput-boolean v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->f:Z

    iput-boolean v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->g:Z

    iput v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->h:I

    new-instance v0, Lnet/tsapps/topdeals/views/g;

    invoke-direct {v0, p0}, Lnet/tsapps/topdeals/views/g;-><init>(Lnet/tsapps/topdeals/views/TdScrollview;)V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->i:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/views/TdScrollview;)Lnet/tsapps/topdeals/views/TdScrollview;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->e:Lnet/tsapps/topdeals/views/TdScrollview;

    return-object v0
.end method

.method static synthetic a(Lnet/tsapps/topdeals/views/TdScrollview;I)V
    .locals 0

    iput p1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->h:I

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/views/TdScrollview;Z)V
    .locals 0

    iput-boolean p1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->g:Z

    return-void
.end method

.method static synthetic b(Lnet/tsapps/topdeals/views/TdScrollview;)I
    .locals 1

    iget v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->h:I

    return v0
.end method

.method static synthetic c(Lnet/tsapps/topdeals/views/TdScrollview;)Z
    .locals 1

    iget-boolean v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->g:Z

    return v0
.end method

.method static synthetic d(Lnet/tsapps/topdeals/views/TdScrollview;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->d:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic e(Lnet/tsapps/topdeals/views/TdScrollview;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->f:Z

    return-void
.end method


# virtual methods
.method public onScrollChanged(IIII)V
    .locals 4

    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ScrollView;->onScrollChanged(IIII)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/views/TdScrollview;->getHeight()I

    move-result v0

    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lnet/tsapps/topdeals/views/TdScrollview;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    mul-int/lit8 v0, v0, 0x5

    if-le v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-eq p2, p4, :cond_0

    iget-boolean v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->f:Z

    if-nez v0, :cond_0

    iput p2, p0, Lnet/tsapps/topdeals/views/TdScrollview;->h:I

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->d:Landroid/os/Handler;

    iget-object v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->i:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->d:Landroid/os/Handler;

    iget-object v1, p0, Lnet/tsapps/topdeals/views/TdScrollview;->i:Ljava/lang/Runnable;

    const-wide/16 v2, 0xc8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnet/tsapps/topdeals/views/TdScrollview;->f:Z

    goto :goto_0
.end method
